//
//  CharSeg.m
//  Air
//
//  Created by dongguozheng on 2016/11/6.
//  Copyright © 2016年 董国政. All rights reserved.
//

#import "CharSeg.h"
@interface  CharSeg()
{
      NSString *str1;
}
@end
@implementation CharSeg
-(NSString *)WithStr:(NSString *)str WithMakeRange:(NSUInteger)word1 With:(NSUInteger)word2
{
    NSString *charStr=[str substringWithRange:NSMakeRange(word1,word2)];
    return charStr;
}
-(NSString *)withStrGetChar:(NSString *)str
{
    if (str.length>10) {
        NSArray  *pArr=[str componentsSeparatedByString:@", "];
        str1=pArr[1];
            return str1;
    }else{
        return nil;
    }
    return str1;
}
-(NSString *)withGetStr:(NSString *)str
{
    if (str.length>1) {
        NSArray  *pArr=[str componentsSeparatedByString:@"_"];
        str1=pArr[1];
        return str1;
    }else{
        return nil;
    }
    return str1;
}
@end
